package com.mark.mall.admin.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.mark.mall.admin.platform.dto.OrderDTO;
import com.mark.mall.admin.platform.dto.OrderDetailDTO;
import com.mark.mall.admin.platform.dto.PageParamDTO;
import com.mark.mall.admin.platform.entity.Order;
import com.mark.mall.common.resultBean.R;

/**
 * <p>
 * 销售单表 服务类
 * </p>
 *
 * @author admin
 * @since 2021-02-28
 */
public interface OrderService extends IService<Order> {

    /**
     * 获取订单列表
     *
     * @param param
     * @param orderNo
     * @return
     */
    R<PageInfo<OrderDTO>> orderPageInfo(PageParamDTO param, String orderNo);

    /**
     * 删除订单
     *
     * @param id
     * @return
     */
    R<Boolean> delOrder(String id);

    /**
     * 获取订单详情
     *
     * @param orderId
     * @return
     */
    R<OrderDetailDTO> detail(String orderId);
}
